package com.ryh.mapper;


import com.ryh.entity.Permission;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Set;

public interface PermissionMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Permission record);

    int insertSelective(Permission record);

    Permission selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Permission record);

    int updateByPrimaryKey(Permission record);

    /**
     * 根据权限id列表获取权限
     * @param permissionIds
     * @return
     */
    List<Permission> findByIds(@Param("permissionIds") Set<Integer> permissionIds);
}